<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Log extends Model
{
    //
    protected $table='log';

    public function LogData($data)
    {
        $this->time= time();
        $this->type = $data;
        return $this->save();
    }
}
